import { type RouteRecordRaw } from 'vue-router';

export const monitorRoutes: RouteRecordRaw[] = [
  {
    name: 'monitor',
    path: '/monitor',
    redirect: '/monitor/users',
    meta: { title: '平台监控', icon: 'system' },
    children: [
      {
        path: 'online',
        name: 'online',
        meta: { title: '在线用户' },
        component: () => import('@/views/monitor/online/Index.vue'),
      },
      {
        path: 'server',
        name: 'server',
        meta: { title: '服务监控' },
        component: () => import('@/views/monitor/server/Index.vue'),
      },
      {
        path: 'cache',
        name: 'cache',
        meta: { title: '缓存监控' },
        component: () => import('@/views/monitor/cache/Index.vue'),
      },
      {
        path: 'blacklist',
        name: 'blacklist',
        meta: { title: '黑名单限制' },
        component: () => import('@/views/monitor/blacklist/Index.vue'),
      },
      {
        path: 'whitelist',
        name: 'whitelist',
        meta: { title: '白名单限制' },
        component: () => import('@/views/monitor/whitelist/Index.vue'),
      },
    ],
  },
];
